Integrand size = 29, antiderivative size = 163 \[ \int \frac {\sqrt {c+d \tan (e+f x)}}{\sqrt {a+b \tan (e+f x)}} \, dx=-\frac {i \sqrt {c-i d} \text {arctanh}\left (\frac {\sqrt {c-i d} \sqrt {a+b \tan (e+f x)}}{\sqrt {a-i b} \sqrt {c+d \tan (e+f x)}}\right )}{\sqrt {a-i b} f}+\frac {i \sqrt {c+i d} \text {arctanh}\left (\frac {\sqrt {c+i d} \sqrt {a+b \tan (e+f x)}}{\sqrt {a+i b} \sqrt {c+d \tan (e+f x)}}\right )}{\sqrt {a+i b} f} \]
[Out]
Time = 0.25 (sec) , antiderivative size = 163, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.138, Rules used = {3656, 924, 95, 214} \[ \int \frac {\sqrt {c+d \tan (e+f x)}}{\sqrt {a+b \tan (e+f x)}} \, dx=\frac {i \sqrt {c+i d} \text {arctanh}\left (\frac {\sqrt {c+i d} \sqrt {a+b \tan (e+f x)}}{\sqrt {a+i b} \sqrt {c+d \tan (e+f x)}}\right )}{f \sqrt {a+i b}}-\frac {i \sqrt {c-i d} \text {arctanh}\left (\frac {\sqrt {c-i d} \sqrt {a+b \tan (e+f x)}}{\sqrt {a-i b} \sqrt {c+d \tan (e+f x)}}\right )}{f \sqrt {a-i b}} \]
[In]
[Out]
Rule 95
Rule 214
Rule 924
Rule 3656
Rubi steps \begin{align*} \text {integral}& = \frac {\text {Subst}\left (\int \frac {\sqrt {c+d x}}{\sqrt {a+b x} \left (1+x^2\right )} \, dx,x,\tan (e+f x)\right )}{f} \\ & = \frac {\text {Subst}\left (\int \left (\frac {i c-d}{2 (i-x) \sqrt {a+b x} \sqrt {c+d x}}+\frac {i c+d}{2 (i+x) \sqrt {a+b x} \sqrt {c+d x}}\right ) \, dx,x,\tan (e+f x)\right )}{f} \\ & = \frac {(i c-d) \text {Subst}\left (\int \frac {1}{(i-x) \sqrt {a+b x} \sqrt {c+d x}} \, dx,x,\tan (e+f x)\right )}{2 f}+\frac {(i c+d) \text {Subst}\left (\int \frac {1}{(i+x) \sqrt {a+b x} \sqrt {c+d x}} \, dx,x,\tan (e+f x)\right )}{2 f} \\ & = \frac {(i c-d) \text {Subst}\left (\int \frac {1}{a+i b-(c+i d) x^2} \, dx,x,\frac {\sqrt {a+b \tan (e+f x)}}{\sqrt {c+d \tan (e+f x)}}\right )}{f}+\frac {(i c+d) \text {Subst}\left (\int \frac {1}{-a+i b-(-c+i d) x^2} \, dx,x,\frac {\sqrt {a+b \tan (e+f x)}}{\sqrt {c+d \tan (e+f x)}}\right )}{f} \\ & = -\frac {i \sqrt {c-i d} \text {arctanh}\left (\frac {\sqrt {c-i d} \sqrt {a+b \tan (e+f x)}}{\sqrt {a-i b} \sqrt {c+d \tan (e+f x)}}\right )}{\sqrt {a-i b} f}+\frac {i \sqrt {c+i d} \text {arctanh}\left (\frac {\sqrt {c+i d} \sqrt {a+b \tan (e+f x)}}{\sqrt {a+i b} \sqrt {c+d \tan (e+f x)}}\right )}{\sqrt {a+i b} f} \\ \end{align*}
Time = 0.19 (sec) , antiderivative size = 167, normalized size of antiderivative = 1.02 \[ \int \frac {\sqrt {c+d \tan (e+f x)}}{\sqrt {a+b \tan (e+f x)}} \, dx=-\frac {i \left (\frac {\sqrt {-c+i d} \text {arctanh}\left (\frac {\sqrt {-c+i d} \sqrt {a+b \tan (e+f x)}}{\sqrt {-a+i b} \sqrt {c+d \tan (e+f x)}}\right )}{\sqrt {-a+i b}}-\frac {\sqrt {c+i d} \text {arctanh}\left (\frac {\sqrt {c+i d} \sqrt {a+b \tan (e+f x)}}{\sqrt {a+i b} \sqrt {c+d \tan (e+f x)}}\right )}{\sqrt {a+i b}}\right )}{f} \]
[In]
[Out]
Timed out.
\[\int \frac {\sqrt {c +d \tan \left (f x +e \right )}}{\sqrt {a +b \tan \left (f x +e \right )}}d x\]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 6555 vs. \(2 (119) = 238\).
Time = 3.69 (sec) , antiderivative size = 6555, normalized size of antiderivative = 40.21 \[ \int \frac {\sqrt {c+d \tan (e+f x)}}{\sqrt {a+b \tan (e+f x)}} \, dx=\text {Too large to display} \]
[In]
[Out]
\[ \int \frac {\sqrt {c+d \tan (e+f x)}}{\sqrt {a+b \tan (e+f x)}} \, dx=\int \frac {\sqrt {c + d \tan {\left (e + f x \right )}}}{\sqrt {a + b \tan {\left (e + f x \right )}}}\, dx \]
[In]
[Out]
Exception generated. \[ \int \frac {\sqrt {c+d \tan (e+f x)}}{\sqrt {a+b \tan (e+f x)}} \, dx=\text {Exception raised: ValueError} \]
[In]
[Out]
Timed out. \[ \int \frac {\sqrt {c+d \tan (e+f x)}}{\sqrt {a+b \tan (e+f x)}} \, dx=\text {Timed out} \]
[In]
[Out]
Timed out. \[ \int \frac {\sqrt {c+d \tan (e+f x)}}{\sqrt {a+b \tan (e+f x)}} \, dx=\text {Hanged} \]
[In]
[Out]